package com.sam4cloud.generate;

import com.sam4cloud.common.core.cons.MicroCloudCons;
import com.sam4cloud.generate.config.v3_5_2.SuperGenerator;
import com.sam4cloud.generate.enums.LocationEnum;
import org.junit.jupiter.api.Test;

/**
 * @Author: Sam
 * @Date: 2022/11/7 16:50
 * @Description: mybatisPlus数据库表生成器
 */
public class MicroGenerateTestv3_5_2 {

    String url = "jdbc:mysql://127.0.0.1:3306/micro_oauth2_db?useUnicode=true&characterEncoding=utf8&serverTimezone=Asia/Shanghai&useSSL=false";
    String username = "root";
    String password = "root";
    String moduleName = MicroCloudCons.GENERATE;
    //String moduleName = MicroCloudCons.OAUTH2;
    //LocationEnum locationEnum = LocationEnum.INNER;
    LocationEnum locationEnum = LocationEnum.OUTER;
    //String packageLocation = "com.sam4cloud.auth.project";
    String packageParent = "com.sam4cloud.oauth2.project";
    String packagePrefix = "ss";

    @Test
    public void generator() {
        SuperGenerator superGenerator = new SuperGenerator();
        superGenerator.generate("Sam", url, username, password, moduleName, locationEnum, packageParent, packagePrefix,
                "", "oauth_account");
    }
}
